package com.tsingtao.springboot2.api.controller;

import com.tsingtao.springboot2.service.HelloService;
import com.tsingtao.springboot2.service.impl.HelloServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController("/${tableName})
public class ${tableName}Controller {

    @Autowired
    private ${tableName}Service ${tableName}Service;

    @PostMapping("/insert")
    public String insert() {
    log.warn("这是info级别的日志");
        return helloService.hello();
    }

    @PostMapping("/insert")
    public String insert() {
    log.warn("这是info级别的日志");
    return helloService.hello();
    }

    @PostMapping("/insert")
    public String insert() {
    log.warn("这是info级别的日志");
    return helloService.hello();
    }

    @PostMapping("/insert")
    public String insert() {
    log.warn("这是info级别的日志");
    return helloService.hello();
    }

}
